#include<iostream>
using namespace std;
void change(int* p1, int* p2)
{
	int* temp;
	temp = p1;
	p1 = p2;
	p2 = temp;
}
int main()
{
	int a = 2;
	int b = 5;

	change(&a, &b);
	cout << a << " " << b;
	return 0;
}